<template>
  <div class="container">
    <Category title="食物">
      <img src="#" alt="food">
    </Category>
    <Category title="游戏">
      <ul>
        <li v-for="(item,index) in games" :key="index">
          {{ item }}
        </li>
      </ul>
    </Category>
    <Category title="电影">
      <video controls src="#"></video>
    </Category>
  </div>
</template>

<script>
  import Category from './components/Category.vue';
  export default {
      name: "App",
      components: {Category},
      data(){
        return {
          foods:['寿司','披萨','麻辣烫','炸鸡'],
          games:['绝地求生','守望先锋','英雄联盟','塞尔达传说'],
          films:['《星球大战》','《疯狂动物城》','《阿甘正传》','《泰坦尼克号》']
        }
      }
  }
</script>

<style scoped>
  .container {
    display: flex;
    justify-content: space-around;
  }
  video {
    width: 100%;
  }
</style>
